package com.wpx.log.core.handler;

import java.lang.reflect.Field;
import com.wpx.log.core.LogContext;
import com.wpx.log.core.LogRequestContext;
import com.wpx.log.core.handler.desc.ILogDescPolicy;

public class OpDescLogHandler implements ILogHandler {

	@Override
	public Object handler(LogContext logContext, LogRequestContext logRequestContext, Field logField) {
		return logContext.getLogDescPolicy(logRequestContext.getOpLogAnnotationAsMethod().descPolicy())
				.getDesc(logContext, logRequestContext, logField);
	}

}
